package com.driver.system.service;


import com.driver.system.db.pojo.VoucherEntity;
import com.driver.system.util.PageUtils;

import java.util.HashMap;
import java.util.Map;

public interface VoucherService {
    PageUtils searchVoucherByPage(Map param);

    int insert(VoucherEntity entity);

    int updateVoucherStatus(Map param);

    int deleteVoucherByIds(Long[] ids);

    PageUtils searchUnTakeVoucherByPage(Map param);

    PageUtils searchUnUseVoucherByPage(Map param);

    PageUtils searchUsedVoucherByPage(Map param);

    long searchUnUseVoucherCount(Map param);

    boolean takeVoucher(Map param);

    HashMap searchBestUnUseVoucher(Map param);
}
